package edu.tgc.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.tgc.entity.file.FileResource;

@Entity
@Table(indexes = { @Index(columnList = "id"), @Index(columnList = "createDate"), @Index(columnList = "goDate") })
public class TbCompact implements Serializable {
    private static final long serialVersionUID = 5045876157985201858L;
    private String address;// 客户地址
    private Double amount;// 合同金额
    private FileResource attachment;// 附件
    private Date createDate;// 签订日期
    private String custname;// 客户名称
    private Date goDate;// 执行日期
    private String id; // 合同编号
    private String lawPerson;// 客户法人代表
    private String name;// 合同名称
    private Date overDate;// 终止日期

    public String getAddress() {
        return this.address;
    }

    public Double getAmount() {
        return this.amount;
    }

    @ManyToOne
    public FileResource getAttachment() {
        return this.attachment;
    }

    public Date getCreateDate() {
        return this.createDate;
    }

    public String getCustname() {
        return this.custname;
    }

    public Date getGoDate() {
        return this.goDate;
    }

    @Id
    public String getId() {
        return this.id;
    }

    public String getLawPerson() {
        return this.lawPerson;
    }

    public String getName() {
        return this.name;
    }

    public Date getOverDate() {
        return this.overDate;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public void setAttachment(FileResource attachment) {
        this.attachment = attachment;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public void setGoDate(Date goDate) {
        this.goDate = goDate;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setLawPerson(String lawPerson) {
        this.lawPerson = lawPerson;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setOverDate(Date overDate) {
        this.overDate = overDate;
    }

}
